<%@ include file="/common/header.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<style>
.edit-mod {
	padding-left: 30px;
	padding-right: 15px;
}

.table-form {
	width: 100%;
}

.table-form .form-control {
	width: 100%;
}

.tips {
	line-height: 30px;
}

.edit-mod .table>tbody>tr>th {
	vertical-align: middle;
	text-align: right;
}

.edit-select {
    border-color: #e8e8e8;
    height: 35px;
    margin-left:30px;
    vertical-align: top;
    width: 250px;
}
.table-form > tbody > tr > td div[date-picker] input[type=text]{
    border-color: #e8e8e8;
}
</style>
<body ng-init="XH='${XH}';FLAG='${FLAG}';">
	<div class="container-full" ng-controller="ztjhDetailController">
		<div class="row">
			<div class="col-md-12 centerContain">
				<div class="edit-body">
					<form id="myForm" class="form-horizontal" name="validateForm">
						<div class="edit-mod" style="margin-top: 55px;">
							<div class="mod-body">
								<table class="table-form table table-bordered form-group">
									<colgroup>
										<col width="200px">
										<col width="*">
									</colgroup>
									<tbody>
										<tr>
											<th>任务推送时间：</th>
											<td>
                                                <div style="display: inline-block;width: 300px;">
                                                    <div date-picker divid='KSSJ' ng-type="month" ng-model="initJY" ng-config="startDateConfig" ng-disabled="AutoViewPage" validateoptions="validType:'date[\'yyyy-MM\']',required:true,tipPosition:'bottom'" ng-write-able="true" placeholder="请选择月份" ng-format="yyyy-MM" change-month="getStartAndEndDateStr()"></div>
                                                </div>
                                                <select class="edit-select" ng-model="initJZ" data-options="validType:'length[1,50]',required:true,tipPosition:'bottom'" ng-options="jz.value as jz.label for jz in tssjJZ" ng-change="getStartAndEndDateStr()"></select>
											</td>
										</tr>
										<tr>
											<th>任务推送开始结束时间：</th>
											<td>
												<span>{{startAndEndDateStr}}</span>
											</td>
										</tr>
										<tr>
											<td colspan="2">
												<button ng-if="FLAG=='add'" type="button" class="icon-del-line" ng-click="add()">添加计划</button>
												<button ng-if="FLAG=='edit'" type="button" class="icon-del-line" ng-click="edit()">保存计划</button>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						
					</form>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript"
		src="<common:webRoot/>/resources/fwszpt/gzbg/ztjh/js/ztjh.js?v=${sysversion}"></script>
</body>
<%@ include file="/common/footer.jsp"%>
